print sum of n natural numbers